#include "Adapter.h"


void test(Duck*);

int main()
{
	Turkey* tur = new WildTurkey();
	Duck* duck = new MallardDuck();

	Duck* dadapter = new TurkeyAdapter( tur );
	cout<<"The turkey said:....\n";
	tur->Gobble();
	tur->Fly();

	cout<<"The duck said:.......\n";
	test(duck);

	cout<<"The adapter said:......\n";
	test(dadapter);

	cin.get();

	delete dadapter;
	delete duck;
	delete tur;

	return 0;
}

void test(Duck* duck)
{
	duck->Quack();
	duck->Fly();
}